import request from '@/utils/request'

// 查询认证供应商列表
export function listAuthSupUser(query) {
  return request({
    url: '/supply/authSupUser/list',
    method: 'get',
    params: query
  })
}

export function passAuthSupUser(id) {
  return request({
    url: '/supply/authSupUser/pass/'+id,
    method: 'put'
  })
}

export function unPassAuthSupUser(id) {
  return request({
    url: '/supply/authSupUser/unpass/'+id,
    method: 'put'
  })
}

// 查询认证供应商详细
export function getAuthSupUser(id) {
  return request({
    url: '/supply/authSupUser/' + id,
    method: 'get'
  })
}

// 新增认证供应商
export function addAuthSupUser(data) {
  return request({
    url: '/supply/authSupUser',
    method: 'post',
    data: data
  })
}

// 修改认证供应商
export function updateAuthSupUser(data) {
  return request({
    url: '/supply/authSupUser',
    method: 'put',
    data: data
  })
}

// 删除认证供应商
export function delAuthSupUser(id) {
  return request({
    url: '/supply/authSupUser/' + id,
    method: 'delete'
  })
}
